package com.situ.mall.service;

import java.util.List;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.entity.Category;
import com.situ.mall.entity.Order;
import com.situ.mall.entity.Product;

import freemarker.cache.StrongCacheStorage;
import net.sf.jsqlparser.statement.select.Select;

public interface ICategoryService {

	List<Category> list();
	
	ServerResponse deleteById(Integer id);
	
	ServerResponse deleteAll(String ids);

	ServerResponse add(Category category);

	ServerResponse pageList(Integer page, Integer limit);
	
	ServerResponse selectTopCategory();
	
	ServerResponse selectSecondCategory(Integer topCategoryId);
	//下面的是前台用到的两级联动
	List<Category> selectTopCategoryList();
	
	List<Category> selectSecondCategoryList();
}
